package util.AST.Terminal;

import util.AST.AST;
import checker.SemanticException;
import checker.Visitor;

public class ID extends Valor{
	
	private AST decNode;
	
	public ID(String speling, String tipo) {
		super(speling, tipo);
	}
	

	@Override
	public String toString(int level) {
		return "ID(" + this.getSpeling() + ")\n";
	}

	@Override
	public Object visit(Visitor v, Object o) throws SemanticException {
		return v.visitID(this, o);
	}

	public AST getDecNode() {
		return decNode;
	}

	public void setDecNode(AST node) {
		this.decNode = node;
	}
	
	

}
